import logging

from appium.webdriver.common.mobileby import MobileBy

from page.basepage import BasePage


class EditMemberPage(BasePage):

    filename = 'editmember_page.yaml'
    def edit_member(self, dic:dict):
        logging.info(dic)
        self._params = dic
        print(self._params)
        self.steps(self.ilename, "edit_member")
        from page.addmember_page import AddMemberPage
        return AddMemberPage(self.driver)

    def del_member(self):
        self.steps(self.filename, "del_member")
        from page.contactlist_page import ContactListPage
        return ContactListPage(self.driver)